package cn.sccdlg.raos.user.service;

import cn.sccdlg.raos.user.mapper.UserMapper;
import cn.sccdlg.raos.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author RaoShuang
 * @emil 991207823@qq.com
 * @date 2020/11/20 21:17
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User queryById(Long id) {
        return userMapper.selectByPrimaryKey(id);
    }

}
